import os

path = r"C:\Users\Cedar\Desktop\dir"

num = 1
for file in os.listdir(path):
    os.rename(os.path.join(path, file), os.path.join(path, str(num)) + ".xlsx")
    num += 2

